class CreateAccountRecords < ActiveRecord::Migration
  def self.up
    create_table :account_records do |t|
      t.integer:account_id
      t.string:operation
      t.decimal:money_amount,:precision=>8,:scale=>2
      t.integer:order_id
      t.decimal:money_left,:precision=>8,:scale=>2
      t.string:operation_prop
      
      t.timestamps
    end
  end

  def self.down
    drop_table :account_records
  end
end
